package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.Passengers;
import com.ruoyi.system.api.factory.RemoteUserFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(contextId = "IPassengerService", value = ServiceNameConstants.PASSENGER_SERVICE, fallbackFactory = RemoteUserFallbackFactory.class)
public interface IPassengerService {

    @PostMapping("/passengers/selectPassengersByPhone")
    public Passengers selectPassengersByPhone(@RequestBody String phone);
}
